
import Footer from '@/components/footer-main'
import {introduceData, complexData} from '../common'
export default {
  components: { Footer},
  data() {
    return{
      loading: false,
      preview: null,
      productImg: require('@/assets/img/jsbanner.jpg'),
      js_bg_01: require('@/assets/img/js_bg_01.jpg'),
      reportData: [], // 轻松驾驭报表
      // 报表样例
      baobiaopeitu: require('@/assets/img/baobiaopeitu_01.jpg'),
      baobiaobg: require('@/assets/img/baobiaobg_02.jpg'),
      sampleData: ['中国式复杂报表','分组报表','交叉报表','自由报表','行式填报'],
      introduceData: introduceData,
      complexData: complexData
    }
  },
  created() {
    this.getDetails()
  },
  methods: {
    goDetails(link) {
      if(link.productName === '报表平台') {
        this.getDetails()
        return
      }
      let path = link.productName === '报表平台' ? '/product/report' :
        link.productName === '数据大屏' ? '/product/daping' :
          link.productName === '数据集算' ? '/product/dataprocess' : '/product-detail'
      this.$router.push({
        path: path,
        query:{
          id: link.productId
        }
      });
    },
    getDetails() {
      document.title = '报表平台'
      this.preview = {
        productName: '迈安报表',
        productSlogan: '类Excel的企业家报表工具',
        btn: '复杂报表、酷炫图表、数据填报',
        productImg: this.productImg
      }
      this.reportData = [
        {
          title: '统计报表',
          list: ['中国式复杂报表 / 多表自由拼接','网络式报表 / 分组报表','交叉报表 / 多源报表'],
          icon: require('@/assets/img/tjbb.jpg')
        },{
          title: '录入报表',
          list: [ '自由填报 / 多sheet填报','行式填报 / 多级上报审核','文件上传 / 离线填报'],
          icon: require('@/assets/img/lrbb.jpg')
        }
      ]

    }
  }
}
